home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / T / The Journal / journal Driver / journalDriverInclude.h < prev   
Encoding:
C/C++ Source or Header  |  1991-03-16  |  1012 b   |  44 lines  |  [TEXT/KAHL]

  1. /*
  2.     FILE: Journal Driver.h
  3.     
  4.     This file contains constants used by both the
  5.     journal driver and things that issue control
  6.     calls to it
  7. */
  8.  
  9. /* bitmasks for event flags. Used to find out what events
  10.    should be trapped. Also used to setup csParam for the
  11.    JRNL_CONFIG call.
  12. */
  13.  
  14.  
  15. #include <Global.h>
  16.  
  17. /*
  18. #define    MOD_COMMAND_BIT    0x0001
  19. #define MOD_OPTION_BIT    0x0002
  20. #define MOD_CONTROL_BIT    0x0004
  21. #define OTHER_KEYS_BIT    0x0008
  22. #define MOUSE_UP_BIT    0x0010
  23. #define MOUSE_DOWN_BIT    0x0020
  24. #define MOUSE_MOVE_BIT    0x0040
  25. */
  26. #define TIME_STAMP_BIT    0x0001
  27.  
  28. #define JRNL_DRVR_NAME    "\p.Journal"
  29.  
  30. /* control calls */
  31.  
  32. #define JRNL_ON            18        /* turn on the journaling mechanism */
  33. #define JRNL_OFF        19        /* turn off the journaling mechanism */
  34. #define JRNL_OPEN_FILE    20        /* csParam contains a pointer to the file name */
  35.  
  36. /* typedef for argument passed in the JRNL_OPEN_FILE control call */
  37.  
  38. typedef struct {
  39.     short    vRefNum ;
  40.     long    dirID ;
  41.     int        eventFlags ;
  42.     OSType    creator ;
  43.     Str63    fName ;
  44. } JrnlFileParam, *P_JrnlFileParam ;